<%@page import="com.mmy.domain.sys.TSysUser"%>
<!-- 引入地点 -->
<%@page import="com.mmy.domain.constzone.TConstZone"%>
<!-- 引入线路 -->
<%@page import="com.mmy.domain.line.TLineBase"%>
<%@page import="com.mmy.domain.line.TLineTrip"%>
<%@page import="com.mmy.domain.line.VLineBase"%>
<!-- 引入公司 -->
<%@page import="com.mmy.domain.sys.TSysOrg"%>
<!-- 引入集合地点 -->
<%@page import="com.mmy.domain.line.TLinePlace"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	TSysUser tSysUser = (TSysUser) session.getAttribute("tSysUser");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
</head>
<body>
<script>
$(function () {
laydate.render({
  elem: '#reserveDay',
  theme: '#1eab3c',
	});
});
	
function clearInput(){
	$("#lineName").val("");
	$("#reserveName").val("");
	$("#reserveDay").val("");
	$("#reserveTel").val("");
	$("#orderType").val("0");
}
</script>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
		<main class="at-padding-large-bottom"> <article> <header
			class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<div class="row">
				<div class="span-5 col">
					<h3>
					<c:if test="${type==1 }">
							近郊游
					</c:if>
					<c:if test="${type==2 }">
							境内游				
					</c:if>
					<c:if test="${type==3 }">
							出境游			
					</c:if>
					<c:if test="${type==4 }">
							目的地游			
					</c:if>线路管理</h3>
				</div>
			</div>
		</div>
		</header> 
		<section class="container"> 
		<nav class="breadcrumb">
		<b><a href="orderreserved?type=${type}">预留单</a></b> / <a href="orderpaid?type=${type}">订单</a> / <a href="ordercancel?type=${type}">退单</a>
		<hr class="breadcrumb-hr" color=#F9F6E5 SIZE=3></hr>
		</nav>
		<div class="information">
			<!-- 开始 -->
			<form class="info-form" action="orderreserved">
				<input type="hidden" id="type" value="${type}">
				<h4 class="info-h4">
					<i class="fa fa-caret-right" aria-hidden="true"></i>预留单管理
				</h4>
				<div>
					<span> <label for="orderType">订单类型：</label></span>	
					<select class="input-select-vlign" id="orderType" name="orderType">
						<option value="0" <c:if test="${orderType == 0}"> selected="selected"</c:if> >全部</option>
						<option value="1" <c:if test="${orderType == 1}"> selected="selected"</c:if> >本公</option>
						<option value="2" <c:if test="${orderType == 2}"> selected="selected"</c:if> >采购</option>
						<option value="3" <c:if test="${orderType == 3}"> selected="selected"</c:if> >外采</option>
					</select>
						线路名称：<input type="text" class="input-width" id="lineName" name="lineName" value="${lineName}"/>
						姓名： <input type="text" class="input-width" id="reserveName" name="reserveName" value="${name}"/> 
						电话： <input type="text" class="input-width-tel" id="reserveTel" name="reserveTel" value="${tel}"/>
						预留日期：<input type="text" class="input-width-date" id="reserveDay" name="reserveDay" value="${date}" />
						<input type="submit" value="搜索" class="btn" />
						<input type="button" value="重置"  class="btn" onclick = "clearInput()" /><br>
						<!-- <input type="button" value="修改" class="btn at-float-right" onclick="updateReserveLine()"> -->
						<input type="button" class="btn at-float-right" value="收款" onclick="payOrderLineUnion()"> 
						<input type="button" class="btn at-float-right" value="取消" onclick="cancelReserveLineUnion()">
					<table class="info-table">
						<tr>
							<th><input type="checkbox" id="ckall" name="ckall"
								onclick="ckAll(this);"></th>
							<th>姓名</th>
							<th>手机</th>
							<th>操作人</th>
							<th>日期</th>
							<th>备注</th>
							<th>线路名</th>
							<th>线路公司</th>
						</tr>
						<c:forEach var="lstLineOrder" items="${lstLineOrder}">
							<tr>
								<td><input type="checkbox" name="ckone" value="${lstLineOrder.getID()}" onclick="ckOne(this)"></td>
								<td>${lstLineOrder.getReserveName()}</td>
								<td>${lstLineOrder.getReserveTel()}</td>
								<td><input type="hidden" id="operatorOrgID" name="operatorOrgID" value="${lstLineOrder.getReserveUserOrgID()}" />
								    ${lstLineOrder.getReserveUserName()}</td>
								<td><fmt:formatDate value='${lstLineOrder.getReserveDate()}' pattern='yyyy年MM月dd日'/></td>
								<td>${lstLineOrder.getMemo()}</td>
								<td><input type="hidden" id="LineID" name="LineID" value="${lstLineOrder.getLineID()}" />
									${lstLineOrder.getLineName()}</td>
								<td>${lstLineOrder.getLineOrgName()}</td>
							</tr>
						</c:forEach>
					</table>
					<select class="input-select-vlign" name="pageSize" onchange="OrderReservedPageSize(this.options[this.options.selectedIndex].value)">
						<option style="display: none;">${iPageSize}</option>
						<option value="10">10</option>
						<option value="5">5</option>
						<option value="2">2</option>
					</select> <a
						href="orderreserved?pageNumber=1&pageSize=${iPageSize}">首页</a>
					<c:choose>
						<c:when test="${iPageNo == 1}">
						</c:when>
						<c:otherwise>
							<a href="orderreserved?pageNumber=${iPageNo-1}&pageSize=${iPageSize}">上一页</a>
						</c:otherwise>
					</c:choose>
					<c:choose>
						<c:when test="${iPageNo == iMaxPage}">
						</c:when>
						<c:otherwise>
							<a href="orderreserved?pageNumber=${iPageNo+1}&pageSize=${iPageSize}">下一页</a>
						</c:otherwise>
					</c:choose>
					<a href="orderreserved?pageNumber=${iMaxPage}&pageSize=${iPageSize}">尾页</a>
				</div>
			</form>
			<center>
				<input type="button" class="btn" value="返回" onclick="rehidder()" />
			</center>
		</div>
		</section> </article> </main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>